﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Olympic_email_to_future.Module;
using Olympic_email_to_future.BLLFactory;
using Olympic_email_to_future.IBLL;
using Olympic_email_to_future.DALFactory;
using Olympic_email_to_future.IDAL;
using Olympic_email_to_future.DAL;
using System.Data.SqlClient;

namespace FutureMeWeb.FutureMe_Admin
{
    public partial class adminTop : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if ((UserInfo)Session["User"]!=null)
            {
                UserInfo user= (UserInfo)Session["User"];
                username.Text = user.userMailAddress;
            }

        }

        public void btnSend_Click(Object o, EventArgs e)
        {
            Response.Write("123124");
            if ((UserInfo)Session["User"] != null) 
            {
                Response.Write("btn");
                Session.Abandon();
                Response.Write("<script language='javascript'>parent.document.location.href='login.aspx'</script>");
            }
        }

       
    }
}